package cn.youfule.dp.proxy;

import java.io.IOException;

public class Client {

	public static void main(String[] args) throws IOException, ClassNotFoundException {
		InvocationHandler ih = new TimeHandler(new Tank());
		Moveable m = (Moveable) Proxy.newProxyInstance(Moveable.class,ih);
		
		//Moveable m = new TankProxyDemo(ih);
		m.move();
	}
}
